package com.project.srtp.common.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Arrays;
import java.util.List;

/**
 * @author 曹行阳
 * @version 0.1
 * @date 2025/3/30 11:57
 */

@ConfigurationProperties(prefix = "app.file")
@Component
@Data
public class FileStorageProperties {
    private String uploadDir;        // 文件存储目录
    private long maxSize = 52428800;  // 默认50MB（单位：字节）
    private List<String> allowedTypes = Arrays.asList(
        "image/jpeg",
        "image/png",
        "application/pdf"
    );
}
